package cn.zkcloud.servlet.annotation;

import cn.zkcloud.servlet.HttpMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author zk
 * @Date 2017/7/7.
 * @Email zkdcloud_cn@163.com
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface Process {

    /** 请求路径
     *
     * @return
     */
    String value() default "/";

    /**请求方法
     *
     * @return
     */
    HttpMethod[] method() default HttpMethod.GET;
}
